package com.jfl.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.jfl.base.BaseModel;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 部门
 * 
 * @author 赵炎
 * @version [V1.00, 2018年12月5日]
 * @since V1.00
 */
@SuppressWarnings("serial")
@TableName("tbl_sys_dept")
@Data
@EqualsAndHashCode(callSuper = false)
public class SysDept extends BaseModel
{
    /**
     * 部门名称
     */
    private String deptName;
    
    /**
     * 上级部门Id
     */
    private Long parentId;
    
    /**
     * 排序号
     */
    @JsonSerialize(using=ToStringSerializer.class)
    private Integer sortNo;
    
    private String leader;
    
    private String phone;
    
    private String email;
    
    private String status;
    
    @TableField(exist=false)
    private String parentName;
    
}
